
/**
 * Content: Java枚举类型
 * --------------------------------------------------
 * Java基础——枚举 （详解）: https://blog.csdn.net/x1113162924/article/details/126367277
 */

public enum Season {
    SPRING(1), SUMMER(2), AUTUMN(3), WINTER(4);

    private int code;

    private Season(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
